panel == priv->down_panel);
}
+ gtk_style_context_set_state (*contextp, gtk_spin_button_panel_get_state (spin_button, panel));
+
return *contextp;
}
+#include "gtkcsssectionprivate.h"
+
static void
gtk_spin_button_panel_get_size (GtkSpinButton *spin_button,
GdkWindow *panel,
icon_size = MAX (w, h);
context = gtk_spin_button_panel_get_context (spin_button, panel);
- state = gtk_spin_button_panel_get_state (spin_button, panel);
+ state = gtk_style_context_get_state (context);
gtk_style_context_get_padding (context, state, &button_padding);
gtk_style_context_get_border (context, state, &button_border);
{
GtkSpinButtonPrivate *priv = spin_button->priv;
GtkStyleContext *context;
- GtkStateFlags state;
GtkWidget *widget;
gdouble width, height, x, y;
gint icon_width, icon_height;
gtk_cairo_transform_to_window (cr, widget, panel);
context = gtk_spin_button_panel_get_context (spin_button, panel);
- state = gtk_spin_button_panel_get_state (spin_button, panel);
- gtk_style_context_set_state (context, state);
height = gdk_window_get_height (panel);
width = gdk_window_get_width (panel);